﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AiFrameDemo.Contacts.Core.ViewModel;
using AiFrameDemo.Contacts.Core.Views;
using AiFrameDemo.Contacts.Lib.Views;
using AiFrameDemo.Contacts.WinForms.Windows;

namespace AiFrameDemo.Contacts.WinForms
{
    class ContactsViewFactory: IContactsViewFactory
    {
        public IContactsListView CreateContactsListViewBase()
        {
            return new ContactsListFrameBase();
        }

        public IContactsListView CreateContactsListView()
        {
            ContactsListFrame contactsListFrame = new ContactsListFrame();
            
            return contactsListFrame;
        }

        public IContactDataView CreateContactDataView()
        {
            return new ContactDataWindow();
        }

        IContactDataViewExt IContactViewFactoryExt.CreateContactDataView()
        {
            IContactDataView dataView = CreateContactDataView();
            ContactDataViewModel viewModel = new ContactDataViewModel(dataView);
            return dataView;
        }
    }
}
